<?php
/**
 * +----------------------------------------------------------------------
 * | Author: 罗极
 * +----------------------------------------------------------------------
 * | Description: LogAbstract.php
 * +----------------------------------------------------------------------
 * | User: Administrator Date: 8/26/ 0026 Time: 15:59
 * +----------------------------------------------------------------------
 */

namespace Framework\Log\Abstracts;

use Framework\Log\Interfaces\LogInterface;

abstract class LogAbstract implements LogInterface
{
    public static function defaultLogName() : string
    {
        return date('Y-m-d').'.log';
    }

    public static function defaultStyle(string $string) : string
    {
        return sprintf('['.date('H:i:s').'] %s', $string).PHP_EOL;
    }
}